package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.GatewayManagement;
import com.ruoyi.system.mapper.GatewayManagementMapper;
import com.ruoyi.system.service.IGatewayManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 空调配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-09
 */
@Service
public class GatewayManagementServiceImpl implements IGatewayManagementService
{
    @Autowired
    private GatewayManagementMapper gatewayManagementMapper;

    /**
     * 查询空调配置
     * 
     * @param gatewayId 空调配置主键
     * @return 空调配置
     */
    @Override
    public GatewayManagement selectGatewayManagementByGatewayId(Long gatewayId)
    {
        return gatewayManagementMapper.selectGatewayManagementByGatewayId(gatewayId);
    }

    /**
     * 查询空调配置列表
     * 
     * @param gatewayManagement 空调配置
     * @return 空调配置
     */
    @Override
    public List<GatewayManagement> selectGatewayManagementList(GatewayManagement gatewayManagement)
    {
        return gatewayManagementMapper.selectGatewayManagementList(gatewayManagement);
    }

    /**
     * 新增空调配置
     * 
     * @param gatewayManagement 空调配置
     * @return 结果
     */
    @Override
    public int insertGatewayManagement(GatewayManagement gatewayManagement)
    {
        return gatewayManagementMapper.insertGatewayManagement(gatewayManagement);
    }

    /**
     * 修改空调配置
     * 
     * @param gatewayManagement 空调配置
     * @return 结果
     */
    @Override
    public int updateGatewayManagement(GatewayManagement gatewayManagement)
    {
        return gatewayManagementMapper.updateGatewayManagement(gatewayManagement);
    }

    /**
     * 批量删除空调配置
     * 
     * @param gatewayIds 需要删除的空调配置主键
     * @return 结果
     */
    @Override
    public int deleteGatewayManagementByGatewayIds(Long[] gatewayIds)
    {
        return gatewayManagementMapper.deleteGatewayManagementByGatewayIds(gatewayIds);
    }

    /**
     * 删除空调配置信息
     * 
     * @param gatewayId 空调配置主键
     * @return 结果
     */
    @Override
    public int deleteGatewayManagementByGatewayId(Long gatewayId)
    {
        return gatewayManagementMapper.deleteGatewayManagementByGatewayId(gatewayId);
    }
}
